
#ifndef __BSP_EFLASH_H__
#define __BSP_EFLASH_H__

#include "bootvector.h"



#include "config.h"
//#include <stdint.h>
#include "hc32_ddl.h"


#define FLASH_SECTOR_SIZE           8192

ErrorStatus ReadEFlash(uint8 *buf, uint32 addr, uint32 len);
ErrorStatus WriteSectorEFlash(uint32_t addr, uint8 *buf);
void WriteEFlash(uint8 *buf, uint32 address, uint32 len);

#endif	/* __BSP_EFLASH_H__ */
